Related example macro: Demo-OnPopup, Demo-DebugPopup
The Window Popup Manager allows you to manage all these pesky popups that appear with Internet Explorer from time to time (Since the IIM Browser emulates Internet Explorer, the same popups appear there as well).
Please note: This function refers to standard Windows popups (for example Java Script based popups or Internet Explorer error messages). It does NOT refer to the web browser popups. Web browser popups are handled with the "TRAPPOPUP" command.
The Popup Manager (PM) automatically handles the standard "Save As", "Download" and "Script Error" popups. For non-standard popups, for example: a web-site specific Java Script popup, it asks you which button PM should press for you. After you make your selection PM presses the Button for you and inserts a "ONPOPUP BUTTON =<yourchoice>" statement into the macro file.
Please note that the PM can only watch ONE running Internet Macros session. The PM is automatically assigned to the Internet Macro session that starts first. So if you have five Internet Macros Browsers open, PM will communicate with the one that was started first. So we recommend that whenever the Popup Manager is in use, only one macro that needs this functionality should run at a time. Other macros that make no use of the Popup Manager can run simultaneously.
Tip: If the website you are automating contains several popups in a short succession, please add a "ONPOPUP BUTTON=..." before every TAG or URL command that triggers a popup. At every "ONPOPUP..." command IIM checks if a PM is running and (if not) restarts the PM. This ensures that even on slower PCs the PM is "ready to click" before the (next) PM appears.
Note: Should you encounter any popup that Internet Macros can not handle, please notify us at support@iopus.com so that we can support it with the next update.
Note: More details about handling script errors can be found at http://www.iopus.com/iim/demo/script-error.htm